package com.company.eos.controller.form.amecttype;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author Song, Wei
 * Date: 2022/4/27 22:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmectTypeForm {

    @NotNull(message = "page不能为空")
    @Min(value = 1, message = "page不能小于1")
    @Schema(description = "页数")
    private Integer page;

    @NotNull(message = "length不能为空")
    @Range(min = 10, max = 50, message = "length必须在10～50之间")
    @Schema(description = "每页记录数")
    private Integer length;

    @Schema(description = "类别")
    private String type;

}
